#include "Car.h"
using namespace std;


Car::Car(void)
{
	this->brand = "NULL";
	this->year = 0;
	this->price = 0.0;
}

Car::Car( string b, int y, double p )
{
	this->brand = b;
	this->year = y;
	this->price = p;
}

void Car::ReadFromConsole( )
{
	cout << "Enter values of the car as follows: \n" <<
		"Brand: ";
	cin >> this->brand;
	cout << "Year: ";
	cin >> this->year;
	cout << "Price: ";
	cin >> this->price;
}

void Car::WriteToConsole( )
{
	cout << "Brand: " << this->brand << "\t" <<
		"Year: " << this->year << "\t\t" <<
		"Price: " << this->price << "\n";
}


Car::~Car(void)
{
}
